package com.ourteam.workspace.dao;

import net.dao.IDataAccessInterface;

/**
 * Template Name : DAO接口模板 Template Version : 1 Template Last Modfiy Date : Thu Sep 21 11:14:14 CST
 * 2017 Auto Generate Date : 2018-11-30 18:42:25 Warning ! This file will be overwrite when
 * regenerate !
 */
public interface IBaseWorkspaceServerDAO
    extends IDataAccessInterface<WorkspaceServer, WorkspaceServerDAOQueryBean> {

  /** Mapped Entity Name */
  static final String EntityName = "WORKSPACE_SERVER";

  /** Mapped Field ID */
  static final String Id = "WORKSPACE_SERVER.ID";

  /** Mapped Field WORKSPACE_ID */
  static final String WorkspaceId = "WORKSPACE_SERVER.WORKSPACE_ID";

  /** Mapped Field SERVER_NAME */
  static final String ServerName = "WORKSPACE_SERVER.SERVER_NAME";

  /** Mapped Field SERVER_TYPE */
  static final String ServerType = "WORKSPACE_SERVER.SERVER_TYPE";

  /** Mapped Field SERVER_LOGO */
  static final String ServerLogo = "WORKSPACE_SERVER.SERVER_LOGO";

  /** Mapped Field START_CMD */
  static final String StartCmd = "WORKSPACE_SERVER.START_CMD";

  /** Mapped Field STOP_CMD */
  static final String StopCmd = "WORKSPACE_SERVER.STOP_CMD";

  /** Mapped Field RESTART_CMD */
  static final String RestartCmd = "WORKSPACE_SERVER.RESTART_CMD";

  /** Mapped Field SERVER_LOCATION */
  static final String ServerLocation = "WORKSPACE_SERVER.SERVER_LOCATION";

  /** Mapped Field SERVER_USER */
  static final String ServerUser = "WORKSPACE_SERVER.SERVER_USER";

  /** Mapped Field SERVER_PASSWORD */
  static final String ServerPassword = "WORKSPACE_SERVER.SERVER_PASSWORD";

  /** Mapped Field STATUS */
  static final String Status = "WORKSPACE_SERVER.STATUS";

  /** Mapped Field REMARKS */
  static final String Remarks = "WORKSPACE_SERVER.REMARKS";

  /** Mapped Field DEFAULT_SERVER */
  static final String DefaultServer = "WORKSPACE_SERVER.DEFAULT_SERVER";

  public static interface DataProperty {

    /** Attribute defaultServer */
    static final String DefaultServer = "defaultServer";

    /** Attribute id */
    static final String Id = "id";

    /** Attribute workspaceId */
    static final String WorkspaceId = "workspaceId";

    /** Attribute serverName */
    static final String ServerName = "serverName";

    /** Attribute serverType */
    static final String ServerType = "serverType";

    /** Attribute serverLogo */
    static final String ServerLogo = "serverLogo";

    /** Attribute startCmd */
    static final String StartCmd = "startCmd";

    /** Attribute stopCmd */
    static final String StopCmd = "stopCmd";

    /** Attribute restartCmd */
    static final String RestartCmd = "restartCmd";

    /** Attribute serverLocation */
    static final String ServerLocation = "serverLocation";

    /** Attribute serverUser */
    static final String ServerUser = "serverUser";

    /** Attribute serverPassword */
    static final String ServerPassword = "serverPassword";

    /** Attribute status */
    static final String Status = "status";

    /** Attribute remarks */
    static final String Remarks = "remarks";
  }

  public static interface _DataObjectProperty extends DataProperty {}

  /**
   * Delete Data
   *
   * @param final long id
   * @throws Exception
   */
  void delete(final long id) throws Exception;
  /**
   * Find Data By Primary Key
   *
   * @param final long id
   * @throws Exception
   */
  WorkspaceServer findById(final long id) throws Exception;
}
